class Solution:
    def abbreviateProduct(self, left: int, right: int) -> str:
        num = math.factorial(right) // math.factorial(left - 1)
        num = str(num)
        zeroCount = 1
        while num[-zeroCount] == '0':
            zeroCount += 1
        zeroCount -= 1
        if zeroCount:
            num = num[:-zeroCount]
        if len(num) > 10:
            return num[:5] + '...' + num[-5:] + 'e' + str(zeroCount)
        else:
            return num + 'e' + str(zeroCount)
